package 多态.多态类型转换;

public class Dog extends Animal{
    String name="小狗";
    int age=21;
    @Override
    public void eat(){
        System.out.println("小狗吃肉");
    }
    public void sleep_1(){
        System.out.println("小狗都需要睡觉。");
    }
}
